package com.feng.Controller;

import com.feng.domain.ResponseResult;
import com.feng.service.MsmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/msm")
@CrossOrigin
public class MsmController {
    @Autowired
    private MsmService msmService;

    /**
     * 发送验证码
     * @param phone
     * @return
     */
    @PostMapping("send/{phone}")
    public ResponseResult sendMsm(@PathVariable String phone){
        return   msmService.sendMsm(phone);

    }
}
